<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link href="bower_components/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
    <script type="text/javascript" src="bower_components/lodash/lodash.js"></script>
    <script type="text/javascript" src="bower_components/angularjs/angular.js"></script>

    <script type="text/javascript" src="javascript.js"></script>

    <script type="text/javascript" src="data/data.js"></script>
    <script type="text/javascript" src="data/data-stat-follow.js"></script>
    <script type="text/javascript" src="data/current-num.js"></script>
    <script type="text/javascript" src="data/all-afns-test-result.js"></script>
    <script type="text/javascript" src="data/hot-cold-analysis-result.js"></script>
    <script type="text/javascript" src="data/kill-data.js"></script>
</head>
<body ng-app="app" ng-controller="AppCtrl">

    <div class="container">

        <div class="well">
            预测结果：
            <button ng-repeat="item in predictNums" ng-class="{'btn-danger': !$last, 'btn-primary': $last}" class="btn" type="button">
                <span class="badge">{{item}}</span>
            </button>

            <div class="pull-right">
                <button class="btn btn-primary" ng-click="predictLotteryNumbers()">算法一</button>
                <button class="btn btn-primary" ng-click="predictLotteryNumbers2()">算法二</button>
            </div>
        </div>

        <pre>执行命令查看是否出现过该组号码: node index.js -ia {{predictNums.join(',')}}</pre>

        <div class="row">
            <div ng-repeat="item in data" class="col-lg-2">
                <table class="table table-bordered">
                    <thead class="bg-info">
                    <tr>
                        <td colspan="2">{{item.title}}</td>
                    </tr>
                    <tr>
                        <td>号码</td>
                        <td>出现次数</td>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="subItem in item.data" ng-class="{'bg-danger': subItem.min, 'bg-success': subItem.max, 'bg-warning': subItem.match}">
                        <td>{{subItem.num}}</td>
                        <td>{{subItem.stat}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <hr/>

        <div class="row">
            <div ng-repeat="item in dataStatFollow" class="col-lg-2">
                <table class="table table-bordered">
                    <thead class="bg-info">
                    <tr>
                        <td colspan="2">{{item.field}}</td>
                    </tr>
                    <tr>
                        <td colspan="2">开奖号码: {{item.number}}</td>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="subItem in item.stat">
                        <td ng-class="{'bg-warning': subItem.isKillRed, 'bg-success': !subItem.isKillRed}">{{subItem.number}}</td>
                        <td>{{subItem.count}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <hr/>

        <table class="table table-bordered">
            <thead class="bg-info">
            <tr>
                <th>标题</th>
                <th>球色</th>
                <th>杀号</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in killData">
                <td>{{item.title}}</td>
                <td>{{item.type}}</td>
                <td>{{item.numbers}}</td>
            </tr>
            <tr>
                <td colspan="3">
                    红球:
                    <span ng-repeat="item in allRedNumbers" ng-class="{'text-danger': !item.kill, 'text-muted': item.kill}">
                        <h3 style="display: inline-block" ng-show="!item.kill">{{item.number}}</h3>
                        <span ng-show="item.kill">{{item.number}}</span> ,
                    </span>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    蓝球:
                    <span ng-repeat="item in allBlueNumbers" ng-class="{'text-primary': !item.kill, 'text-muted': item.kill}">
                        <h3 style="display: inline-block" ng-show="!item.kill">{{item.number}}</h3>
                        <span ng-show="item.kill">{{item.number}}</span> ,
                    </span>
                </td>
            </tr>
            </tbody>
        </table>

        <hr/>

        <div class="row">
            <div ng-repeat="item in allAFnsTestResult" class="col-lg-7">
                <table class="table table-bordered">
                    <thead class="bg-info">
                    <tr>
                        <td colspan="2">{{item.desc}}</td>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>准确率：{{item.successRate}}</td>
                    </tr>
                    <tr>
                        <td>准确率(<=1个误差)：{{item.nearSuccess1}}</td>
                    </tr>
                    <tr>
                        <td>准确率(<=2个误差)：{{item.nearSuccess2}}</td>
                    </tr>
                    <tr class="bg-danger">
                        <td>杀红球：{{item.killRedNums}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

        <hr/>

        <div class="row">
            <div class="col-lg-7">
                <table class="table table-bordered">
                    <thead>
                    <tr class="bg-info">
                        <th colspan="2">前N期未出现过的号码</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in hotColdAnalysisResult.notAppear">
                        <td>{{item.per}}</td>
                        <td>{{item.notAppearNums}}</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            前8期中未开过的号码选1-2个
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <div class="col-lg-7">
                <table class="table table-bordered">
                    <thead>
                    <tr class="bg-info">
                        <th colspan="2">前N期只出现过1次的号码</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in hotColdAnalysisResult.appear1Time">
                        <td>{{item.per}}</td>
                        <td>{{item.appearNums}}</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            分析的结果是前2期中开过1次的号码选1-2个
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>

            <div class="col-lg-7">
                <table class="table table-bordered">
                    <thead>
                    <tr class="bg-info">
                        <th colspan="2">前N期出现过2次的号码</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in hotColdAnalysisResult.appear2Time">
                        <td>{{item.per}}</td>
                        <td>{{item.appearNums}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

    </div>

</body>
</html>